package com.etime.shycourse.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 备注：一个用户只能给课程打一次分。分数可以修改，但是只有一条记录
 * </p>
 *
 * @author wb
 * @since 2022-03-04
 */
@ApiModel(value = "Coursescore对象", description = "备注：一个用户只能给课程打一次分。分数可以修改，但是只有一条记录")
public class Coursescore implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "csid", type = IdType.AUTO)
    private Integer csid;

    private Integer ccourseid;

    private Integer cuserid;

    @ApiModelProperty(value = "用户打分，1-10分")
    private Float cscore;

    private Date ctime;


    public Integer getCsid() {
        return csid;
    }

    public void setCsid(Integer csid) {
        this.csid = csid;
    }

    public Integer getCcourseid() {
        return ccourseid;
    }

    public void setCcourseid(Integer ccourseid) {
        this.ccourseid = ccourseid;
    }

    public Integer getCuserid() {
        return cuserid;
    }

    public void setCuserid(Integer cuserid) {
        this.cuserid = cuserid;
    }

    public Float getCscore() {
        return cscore;
    }

    public void setCscore(Float cscore) {
        this.cscore = cscore;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "Coursescore{" +
                "csid=" + csid +
                ", ccourseid=" + ccourseid +
                ", cuserid=" + cuserid +
                ", cscore=" + cscore +
                ", ctime=" + ctime +
                "}";
    }
}
